glsl: tweak pre-processor to support Apple GLSL compiler
authorChristian Hergert <chergert@redhat.com>
Thu, 29 Oct 2020 16:37:33 +0000 (09:37 -0700)
committerChristian Hergert <chergert@redhat.com>
Thu, 29 Oct 2020 17:57:02 +0000 (10:57 -0700)
commita3fd46c516643b259351f963787bc9ece066f70f
tree5a9d9a840816243e51a7757c42ba7c9b04a48ae1
parent0040667965968e1dddf8bac59f6ed7063ced25f0
glsl: tweak pre-processor to support Apple GLSL compiler

The Apple GLSL compiler cannot deal with empty pre-processor blocks such as

  #if GSK_GLES
  #elif GSK_LEGACY
gsk/resources/glsl/preamble.fs.glsl